package com.legrand.core.exception;


import lombok.Data;

/**
 * @author xiah
 * 2018-06-22 01:30:49
 * description 自定义异常 用来拦截controller及以下异常 无法拦截zuul级别异常
 */
@Data
public class CustomizeException extends RuntimeException {
    private Integer code;
    private String message;

    public CustomizeException(Integer code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public CustomizeException(String message) {
        super(message);
        this.message = message;
    }


    public CustomizeException() {
        super();
    }

}
